//
//  FootView.swift
//  ShiZhe
//
//  Created by 陈卿伟 on 16/8/26.
//  Copyright © 2016年 陈卿伟. All rights reserved.
//

import UIKit

class FootView: UIView {
    var loadMoreNow:Bool
    
    init(frame: CGRect,loadMoreNow:Bool) {
        self.loadMoreNow = loadMoreNow
        super.init(frame: frame)
        if self.loadMoreNow == false{
            self.createLabel()
        }else{
            self.createLoadMoreLabel()
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    //全部加载完了创建一个文字提醒
    func createLabel(){
        let label = UILabel(frame: CGRect(x: 0,y: 10,width: WidthAPP,height: 20))
        label.font = BaseFunc.getSystemFont(13)
        label.textColor = Theme.BarGrayColor
        label.textAlignment = .Center
        label.text = "真的木有啦~"
        self.addSubview(label)
    }
    
    //正在加载的文字提醒
    func createLoadMoreLabel(){
        let label = UILabel(frame: CGRect(x: 0,y: 10,width: WidthAPP,height: 20))
        label.font = BaseFunc.getSystemFont(13)
        label.textColor = Theme.BarGrayColor
        label.textAlignment = .Center
        label.text = "正在加载中"
        self.addSubview(label)
    }
}























